$OpenBSD: patch-configure,v 1.23 2017/04/17 10:24:27 ajacoutot Exp $

See pre-configure.

--- configure.orig	Mon Mar 20 11:51:11 2017
+++ configure	Mon Apr 17 12:01:17 2017
@@ -27932,7 +27932,7 @@ if ${ac_cv_lib_gif_DGifOpen+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lgif  $LIBS"
+LIBS="-L${LOCALBASE}/lib -lgif  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -28042,7 +28042,7 @@ if ${ac_cv_lib_jpeg_jpeg_CreateCompress+:} false; then
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-ljpeg  $LIBS"
+LIBS="-L${LOCALBASE}/lib -ljpeg  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -28152,7 +28152,7 @@ if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-ltiff  $LIBS"
+LIBS="-L${LOCALBASE}/lib -ltiff  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
@@ -28262,7 +28262,7 @@ if ${ac_cv_lib_png_png_create_read_struct+:} false; th
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpng  $LIBS"
+LIBS="-L${LOCALBASE}/lib -lpng  $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
